﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Dune2013
{
    public class NaftaRestanteText: Text
    {
        public Recolector recolector;
        public NaftaRestanteText(Recolector recolector, SpriteFont font, string text, Vector2 position, Color color) :
            base(font, text, position, color) {
                this.recolector = recolector;
        }
        public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
        {
            if (font != null && color != null)
                spriteBatch.DrawString(font, "Nafta restante: "+recolector.nafta, position, color);
        }
    }
}
